# problems/urls.py
from django.urls import path
from . import views

urlpatterns = [
    path('', views.get_all_problems, name='get_all_problems'),  # 获取所有题目
    path('<str:problem_number>/', views.get_problem_by_number, name='get_problem_by_number'),  # 获取单个题目
    path('by_tag/<str:tag_name>/', views.get_problems_by_tag, name='get_problems_by_tag'),
    path('by_tag_index/<int:tag_index>/', views.get_problems_by_tag_index, name='get_problems_by_tag_index'),
    path('problem_content/<str:problem_number>/', views.get_problem_content, name='get_problem_content'),
]